package dto

import(
	"npu.org/ginessential/model"
)

type UserDTO struct{
	Name string `json:"name"`
	Telephone string `json:"telephone"`
}

func ToUserDTO(user model.User) UserDTO {
	return UserDTO{
		Name: user.Name,
		Telephone: user.Telephone,
	}
}